projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8459939
)
(Fformat): Use lisp_string_width instead of strwidth.
author
Kenichi Handa
<handa@m17n.org>
Fri, 19 Jan 2001 23:38:06 +0000
(23:38 +0000)
committer
Kenichi Handa
<handa@m17n.org>
Fri, 19 Jan 2001 23:38:06 +0000
(23:38 +0000)
src/editfns.c
patch
|
blob
|
history
diff --git
a/src/editfns.c
b/src/editfns.c
index c431be1161a0441067aaab41e678e861e9501710..1871c54d2b7044a2a922ff411809add4198c34a7 100644
(file)
--- a/
src/editfns.c
+++ b/
src/editfns.c
@@
-3311,8
+3311,7
@@
Use %% to put a single % into the output.")
if (STRINGP (args[n]))
{
int padding, nbytes;
- int width = strwidth (XSTRING (args[n])->data,
- STRING_BYTES (XSTRING (args[n])));
+ int width = lisp_string_width (args[n], -1, NULL, NULL);
int start = nchars;
/* If spec requires it, pad on right with spaces. */